Skip to content

Conversation

@dogabudak
Copy link

Replace panic with graceful error handling when an invalid regex delimiter is provided. Instead of crashing the application, now:

  • Shows a clear warning message to the user
  • Falls back to the default delimiter pattern [\t\n ]+
  • Allows the application to continue running normally

This prevents crashes from invalid user input while maintaining functionality and providing helpful feedback.

Fixes potential crashes when users provide malformed regex patterns as delimiters through command-line options.

Replace panic with graceful error handling when an invalid regex
delimiter is provided. Instead of crashing the application, now:

- Shows a clear warning message to the user
- Falls back to the default delimiter pattern `[\t\n ]+`
- Allows the application to continue running normally

This prevents crashes from invalid user input while maintaining
functionality and providing helpful feedback.

Fixes potential crashes when users provide malformed regex patterns
as delimiters through command-line options.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@dogabudak dogabudak changed the title Improve error handling for invalid regex delimiter chore: Improve error handling for invalid regex delimiter Sep 2, 2025
@LoricAndre
Copy link
Contributor

Hi, thank you for this contribution. Could you please add screenshots of the behaviour before and after your change ? Sorry for the delayed answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants